package com.zto.sch.base.javautil;

import ch.qos.logback.core.util.ExecutorServiceUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2021-01-20 00:57
 **/
public class HashSetDemo {
    public static void main(String[] args) {
        HashSet hashSet = new HashSet();
        hashSet.add("a");
        HashMap hashMap = new HashMap(2);
        hashMap.put("a", "b");
        ThreadLocal threadLocal1 = new ThreadLocal();
        ThreadLocal threadLocal2 = new ThreadLocal();
        threadLocal1.set("a");
        threadLocal2.set("b");
        System.out.println("over");
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("a","b");

        ScheduledExecutorService scheduledExecutorService = ExecutorServiceUtil.newScheduledExecutorService();


        for (int binCount = 0; ; ++binCount) {
            System.out.println(binCount);
        }


    }
}
